/*
 * Copyright (c) 2023 Huawei Technologies Co., Ltd.
 * openUBMC is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *         http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */

#include "bus.h"
#include <mc/log.h>

using namespace dev;

bus_base::bus_base() {
}

bus_base::~bus_base() {
}

void bus_base::set_left_chip(std::shared_ptr<chip_base> left_chip) {
    this->m_left_chip = left_chip;
}

uint8_t bus_base::get_id() {
    return 0;
}

std::shared_ptr<chip_base> bus_base::get_left_chip() const {
    return m_left_chip;
}